const router = (rout) => {
	let obj = {
		//tabber
		index: '/pages/tabbar/index', //首页
		cooperation: '/pages/tabbar/cooperation', //商业合作
		mine: '/pages/tabbar/mine', //我的
		//index
		programmeDetail:'/pages/index/programme/programmeDetail', //方案详情
		buyInfo:'/pages/index/programme/buyInfo',//填写购买用户信息
		selectExpo:'/pages/index/ment/selectExpo',//选择展会
		selectExpoHall:'/pages/index/ment/selectExpoHall',//选择展馆
		packageSharing:'/pages/index/packageSharing/packageSharing',//整装共享
		search:'/pages/index/search/search',//整装共享搜索
		searchPackageSharing:'/pages/index/search/searchPackageSharing',//整装共享搜索结果页面
		bidding:'/pages/index/bidding/bidding',//特装招标
		biddingDetail:'/pages/index/bidding/biddingDetail',//特装招标详情
		biddingSuccess:'/pages/index/bidding/biddingSuccess',//特装招标成功
		searchBidding:'/pages/index/bidding/searchBidding',//搜索特装招标
		factory:'/pages/index/findFactory/factory',//找工厂
		rent:'/pages/index/rent/rent',//标准件租赁
		rentDetail:'/pages/index/rent/rentDetail',//标准件详情
		searchRent:'/pages/index/search/searchRent',//标准件搜索
		rentClass:'/pages/index/rent/rentClass',//标准件分类
		rentClassList:'/pages/index/rent/rentClassList',//标准件分类列表
		paySuccess:'/pages/index/pay/paySuccess',//标准件分类
		webview:'/pages/index/pay/webview',//标准件分类
		payFail:'/pages/index/pay/payFail',//标准件分类列表
		uping:'/pages/index/service/uping',//服务升级
		systemInfoList:'/pages/index/system/systemInfoList',//系统消息
		systemInfoDetail:'/pages/index/system/systemInfoDetail',//系统消息详情
		//mine
		myData:'/pages/mine/myData/myData',//我的资料
		updateMyData:'/pages/mine/myData/updateMyData', //修改我的资料
		updateSuccess:'/pages/mine/myData/updateSuccess', //我的滋啦修改成功
		setting:'/pages/mine/setting/setting', //设置
		useful:'/pages/mine/setting/useful',//使用帮助
		changePhone:'/pages/mine/setting/changePhone',//修改手机号
		aboutUs:'/pages/mine/setting/aboutUs',//关于我们
		feedBack:'/pages/mine/setting/feedBack',//意见反馈
		myAddress:'/pages/mine/myAddress/myAddress',//自提点地址
		myShipping:'/pages/mine/myAddress/myShipping',//我的地址
		selectAddress:'/pages/mine/myAddress/selectAddress',//选择收货地址
		addNewAddress:'/pages/mine/myAddress/addNewAddress',//新增地址
		updateAddress:'/pages/mine/myAddress/updateAddress',//修改地址
		myOrder:'/pages/mine/myOrder/myOrder',//我的地址
		waitSignUp:'/pages/mine/myOrder/waitSignUp',//待签约订单详情
		waitConstruction:'/pages/mine/myOrder/waitConstruction',//待施工
		alreadySignUp:'/pages/mine/myOrder/alreadySignUp',//已签约
		waitCheck:'/pages/mine/myOrder/waitCheck',//待验收
		alreadySuccess:'/pages/mine/myOrder/alreadySuccess',//已完成
		myCustomized:'/pages/mine/myCustomized/myCustomized',//我的定制
		bid:'/pages/mine/myCustomized/bid',//招标中详情
		factoryDetail:'/pages/mine/myCustomized/factoryDetail',//工厂详情
		selectFactory:'/pages/mine/myCustomized/selectFactory',//选择中标工厂
		editBid:'/pages/mine/myCustomized/editBid',//编辑
		alreadyBid:'/pages/mine/myCustomized/alreadyBid',//已中标详情
		loseBid:'/pages/mine/myCustomized/loseBid',//已流标详情
		alternativeFactory:'/pages/mine/myCustomized/alternativeFactory',//备选工厂
		winningthebidFactory:'/pages/mine/myCustomized/winningthebidFactory',//中标工厂
		myBid:'/pages/mine/myBid/myBid',//我的投标
		myBidDetail:'/pages/mine/myBid/myBidDetail',//我的投标招标中详情
		myBidAlreadyDetail:'/pages/mine/myBid/myBidAlreadyDetail',//我的投标已中标详情
		myBidLoseDetail:'/pages/mine/myBid/myBidLoseDetail',//我的投标未中标详情
		myNumber:'/pages/mine/myNumber/myNumber',//我的积分
		myRentList:'/pages/mine/myRentList/myRentList',//我的租赁清单
		confirmRentOrder:'/pages/mine/myRentList/confirmRentOrder',//确认租赁清单
		myRentOrder:'/pages/mine/myRentOrder/myRentOrder',//我的租赁订单
		waitPayDetail:'/pages/mine/myRentOrder/waitPayDetail',//租赁订单 - 待支付
		waitDeliverGoodsDetail:'/pages/mine/myRentOrder/waitDeliverGoodsDetail',//租赁订单 - 待发货
		waitGetGoodsDetail:'/pages/mine/myRentOrder/waitGetGoodsDetail',//租赁订单 - 待收货
		waitReturnDetail:'/pages/mine/myRentOrder/waitReturnDetail',//租赁订单 - 待归还
		successDetail:'/pages/mine/myRentOrder/successDetail',//租赁订单 - 已完成
		collectProgramme:'/pages/mine/myCollect/collectProgramme',//我的收藏 我收藏的方案
		login:'/pages/login/login',//登录
		userAgreement:'/pages/login/userAgreement',//协议
		getPhone:'/pages/login/getPhone',//我的收藏 我收藏的方案
		shopApplication:"/pages/mine/shopApplication/shopApplication", //店铺申请 严选工厂
		shopApplicationDetail:"/pages/mine/shopApplication/shopApplicationDetail", //店铺申请 严选工厂 完成之后
		company:"/pages/mine/company/company",//编辑公司
		companyDetail:"/pages/mine/company/companyDetail",//设计公司
	};
	let index = rout.indexOf('?') != -1?rout.indexOf('?'):false;
	let str = '';
	if (index) {
		str = obj[rout.substr(0,index)]+rout.substr(index,rout.length);
	}else{
		str = obj[rout];
	}
	return str;
}
export default router